<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${msg}" style="color: #85ff58"/>
<form th:action="@{/login}" method="post">
    <P>用户名：<input type="text" name="userName"/></P>
    <P>密码：<input type="password" name="password"/></P>
    <p><input type="submit" value="登录"/></p>
</form>
</body>
</html>